#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2023/7/3 22:03
# @Author  : sailor233
# @File    : keyboard.py
# @Software: PyCharm
# @Des     :
from time import sleep

from selenium import webdriver
from selenium.webdriver import ActionChains, Keys
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("https://ceshiren.com/")
driver.implicitly_wait(5)
driver.find_element(By.ID,'search-button').click()

search_input = driver.find_element(By.ID,'search-term')

ActionChains(driver).\
    key_down(Keys.SHIFT).\
    send_keys('pytest').key_down(Keys.ENTER).\
    perform()

sleep(5)